package com.lottery.im.api.result.entity.msg_bulletin;

import android.text.TextUtils;

public class BulletionDetails {

  /**
   * content : <p><strong>支付宝转账入款的会员们</strong><strong style="color: rgb(73, 134, 231);">请您在入款前务</strong><strong style="color: rgb(248, 58, 34);">必点击充值页面查看最新入款银行账号先提交订单后再进行充值</strong><strong style="color: rgb(73, 134, 231);">。!!!</strong></p>
   * title : <font color=white>重要公告</font>
   * seqId : 2
   * isLoginShow : 1
   * createDate : 20180823183743
   * userType : -1
   */

  private String content;
  private String title;
  private int seqId;
  private int isLoginShow;
  private String createDate;
  private String userType;

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public String getTitle() {
   return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public int getSeqId() {
    return seqId;
  }

  public void setSeqId(int seqId) {
    this.seqId = seqId;
  }

  public int getIsLoginShow() {
    return isLoginShow;
  }

  public void setIsLoginShow(int isLoginShow) {
    this.isLoginShow = isLoginShow;
  }

  public String getCreateDate() {
    if(!TextUtils.isEmpty(createDate)&&createDate.length()>=8){
      String sb = createDate.substring(0, 8);
      StringBuilder builder = new StringBuilder(sb);
      builder.insert(4,"-").insert(7,"-");
      return builder.toString();
    }else{
      return createDate;
    }
  }

  public void setCreateDate(String createDate) {
    this.createDate = createDate;
  }

  public String getUserType() {
    return userType;
  }

  public void setUserType(String userType) {
    this.userType = userType;
  }
}
